home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 476-500 / disk_497 / reboot / reboot.doc < prev    next >
Text File  |  1992-05-06  |  2KB  |  65 lines

  1.  
  2.                                 Reboot
  3.  
  4.                            by Stefan Sticht
  5.  
  6.                             PUBLIC DOMAIN
  7.  
  8.  
  9. IMPORTANT:   Reboot  requires  Kickstart  and  Workbench 2.0 (at least
  10. Kickstart 37.*) !!
  11.  
  12. Reboot resets your Amiga by calling exec's ColdReboot() function.
  13.  
  14. Template: PROMPT/K,YES/K,TIMEOUT/K/N,QUIET/S
  15.  
  16.     PROMPT:  a question which will be prompted first;
  17.              default is "Do you really want to reboot (y/N)? "
  18.  
  19.     YES:     a string with the positive answer of the above question;
  20.              if YES equals (case independant) the user's answer to the
  21.              prompting, machine will be resetted after timeout;
  22.              default is "y"
  23.              pressing only return means answering no
  24.  
  25.     TIMEOUT: any positive decimal number; the seconds to wait before
  26.              rebooting; default is 0
  27.  
  28.     QUIET:   if this switch is set, no output is made, no prompting done
  29.  
  30. Some examples:
  31.  
  32. ; -- CUT HERE -- to get a script file
  33. ;
  34. ; the default behaviour of Reboot:
  35. Reboot PROMPT "Do you really want to reboot (y/N)? " YES "y" TIMEOUT 0
  36. ;
  37. Echo "Another one: Rebooting in 10 seconds. Press Ctrl-C to abort!"
  38. ; Reboot with QUIET set won't output anything, but it will wait!
  39. Reboot TIMEOUT 10 QUIET
  40. ; a german reboot:
  41. Reboot PROMPT "Wollen Sie wirklich neu starten (j/N)? " YES "j" TIMEOUT 10
  42. ; end of examples -- CUT HERE --
  43.  
  44. Return codes:
  45.     30: dos.library's or exec.library's version is lesser than 37
  46.     20: dos.library's ReadArgs() function returned any error
  47.     15: Can't open utility.library V37 or higher
  48.     10: String for YES to long!
  49.     6: Timeout is negative!
  50.     5: User canceled reboot by answering no or pressing Ctrl-C
  51.  
  52.  
  53.  
  54. Send bug-reports, enhancement-requests, questions, gifts(!) to:
  55. ---------------------------------------------------------------
  56. Stefan Sticht
  57. Bibereckerweg 40a
  58. D-8390 Passau 18
  59. FRG
  60.  
  61. or (better) EMail to:
  62. Internet: cbmvax.commodore.com!cbmehq!cbmger!edith!sticht@rutgers.EDU
  63.       or: IWSTICHT@ibm.rz.uni-passau.de
  64. Fido-Net: Stefan Sticht (2:242/16:4)
  65.